<template>
  <div>
    <Comment :comments="comments"/>
  </div>
</template>

<script>
import Comment from '@/components/comment'

export default {
  data () {
    return {
      comments: null
    }
  },
  methods: {
    getCom () {
      this.axios.get('/goods/comment')
        .then(res => { this.comments = res.data.comments })
    }
  },
  created () {
    this.getCom()
  },
  components: {
    Comment
  }
}
</script>

<style lang="stylus" scoped>

</style>
